package com.action.schedule;


import com.db.schedule.*;

public class DeleteAction {
	private int sabun;
	private int sno;
	private ScheduleDAO scheduleDAO;
	private ScheduleVO vo=new ScheduleVO();
	
	
	
	
	
	public ScheduleVO getVo() {
		return vo;
	}

	public void setVo(ScheduleVO vo) {
		this.vo = vo;
	}

	public int getSabun() {
		return sabun;
	}

	public void setSabun(int sabun) {
		this.sabun = sabun;
	}

	public int getSno() {
		return sno;
	}

	public void setSno(int sno) {
		this.sno = sno;
	}

	public ScheduleDAO getScheduleDAO() {
		return scheduleDAO;
	}

	public void setScheduleDAO(ScheduleDAO scheduleDAO) {
		this.scheduleDAO = scheduleDAO;
	}

	public String execute()throws Exception
	{
		
		vo.setSabun(sabun);
		
		scheduleDAO.deletePlan(sno);
		
		return "success";
	}
}
